package com.mf.service.authority;

import com.mf.domain.authority.UserPortrait;
import com.mf.service.framework.IService;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

/**
 * 用户头像信息Service层接口类
 * User: zhaoming
 * DateTime: 2016-07-15
 * To change this template use File | Settings | File Templates.
 **/
public interface UserPortraitService extends IService<UserPortrait> {

    /**
     * 上传图片文件
     * @param multipartFile 上传文件
     * @param userCode 用户编码
     */
    UserPortrait uploadImageFile(MultipartFile multipartFile, String userCode);

    /**
     * 查看图片
     * @param userPortraitId 用户头像ID
     */
    ResponseEntity<byte[]> show(Long userPortraitId);

}
